package com.tudouji.project.harvest.service.impl;

import com.tudouji.project.harvest.domain.Forderstandard;
import com.tudouji.project.harvest.mapper.ForderstandardMapper;
import com.tudouji.project.harvest.service.IForderstandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 采收货运单扣杂标准Service业务层处理
 *
 * @author tudouji
 * @date 2022-10-27
 */
@Service
public class ForderstandardServiceImpl implements IForderstandardService
{
    @Autowired
    private ForderstandardMapper forderstandardMapper;

    /**
     * 查询采收货运单扣杂标准
     *
     * @param guid 采收货运单扣杂标准ID
     * @return 采收货运单扣杂标准
     */
    @Override
    public Forderstandard selectForderstandardById(String guid)
    {
        return forderstandardMapper.selectForderstandardById(guid);
    }

    /**
     * 查询采收货运单扣杂标准列表
     *
     * @param forderstandard 采收货运单扣杂标准
     * @return 采收货运单扣杂标准
     */
    @Override
    public List<Forderstandard> selectForderstandardList(Forderstandard forderstandard)
    {
        return forderstandardMapper.selectForderstandardList(forderstandard);
    }

    /**
     * 新增采收货运单扣杂标准
     *
     * @param forderstandard 采收货运单扣杂标准
     * @return 结果
     */
    @Override
    public int insertForderstandard(Forderstandard forderstandard)
    {
        return forderstandardMapper.insertForderstandard(forderstandard);
    }

    /**
     * 修改采收货运单扣杂标准
     *
     * @param forderstandard 采收货运单扣杂标准
     * @return 结果
     */
    @Override
    public int updateForderstandard(Forderstandard forderstandard)
    {
        return forderstandardMapper.updateForderstandard(forderstandard);
    }

    /**
     * 批量删除采收货运单扣杂标准
     *
     * @param guids 需要删除的采收货运单扣杂标准ID
     * @return 结果
     */
    @Override
    public int deleteForderstandardByIds(String[] guids)
    {
        return forderstandardMapper.deleteForderstandardByIds(guids);
    }

    /**
     * 删除采收货运单扣杂标准信息
     *
     * @param guid 采收货运单扣杂标准ID
     * @return 结果
     */
    @Override
    public int deleteForderstandardById(String guid)
    {
        return forderstandardMapper.deleteForderstandardById(guid);
    }
}
